//
// Created by nicemoe on 2021/8/9.
//

#include  <iostream>
//inline 使函数内联
inline double square(double x) {
    return x * x;
}

using namespace std;

int main() {

    double a,b;
    double  c=13.0;
    a = square(5.0);
    b = square(4.5 + 7.5);
    cout << "a = " << a << ", b = " << b <<"\n";
    cout << "c = " << c;
    cout <<", c squared = " << square(c++) << "\n";
    cout << "Now c= " << c << "\n";

    return 0;
}
